package com.woniu.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 服务项目表
 * </p>
 *
 * @author YMY
 * @since 2022-10-12
 */
@Getter
@Setter
  @TableName("tb_item")
@ApiModel(value = "Item对象", description = "服务项目表")
public class Item implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("项目id，主键，默认自动递增")
        @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("项目名称（唯一，带有树状索引）")
      private String name;

      @ApiModelProperty("服务次数（0为不限次数，默认不限制次数）")
      private Integer times;

      @ApiModelProperty("收费类型（0为免费，1为付费，默认免费）")
      private Integer type;

      @ApiModelProperty("项目价格/元（小数点后两位，默认为0）")
      private BigDecimal price;

      @ApiModelProperty("项目介绍（默认为空字符串）")
      private String introduce;

      @ApiModelProperty("创建时间")
        @TableField(fill = FieldFill.INSERT)
      private Date createTime;

      @ApiModelProperty("修改时间（默认当前时间）")
        @TableField(fill = FieldFill.INSERT_UPDATE)
      private Date updateTime;

      @ApiModelProperty("创建医生id（默认为0）")
      private Long doctorId;

      @ApiModelProperty("逻辑删除（0未删除，1已删除，默认为0）")
      @TableLogic
    private Byte isDeleted;
}
